﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using YunCMS.Common;
using System.Drawing;

namespace YunCMS.Web.Images
{
    public partial class verifycode : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            VerifyCode v = new VerifyCode();
            v.Length = 4;
            v.FontSize = 12;
            v.Chaos = true;
            v.IsTwist = true;
            v.BackgroundColor = Color.LightYellow;
            string code = v.CreateVerifyCode();
            v.CreateImageOnPage(code, this.Context);
            Session["verifycode"] = code.ToUpper();
        }
    }
}